{% extends "base.html" %}

{% block title %}{{sysname}} (system){% endblock %}
{% block heading %}System {{sysname}}{% endblock %}

{% block leftmenu %}
	<a href='/scanning'>Map</a><br/>
	<a href='/sigs?sysname={{sysname}}'>Edit sigs</a><br/>
	<a href='/sysnotes?sysname={{sysname}}'>Edit notes</a><br/>
	<a href='/pages?page=gosystem'>Find system</a><br/>
	<a href='/scanningcalc'>Calculator</a><br/>
{% endblock %}

{% block content %}
		<div id="top1">
			<table>
				<tr>
					<td valign="top">
						<div id="summary">
							<h3>System Information</h3>
							<table>
								<tr class="standard">
									<td>System name:</td>
									<td>{{sysname}} {% if nickname %} ({{nickname}}) {% endif %}
									</td>
								</tr>
								<tr class="standard">
									<td>Category/class:</td>
									<td>{{category}}</td>
								</tr>
								{% if wsys %}
								<tr class="standard">
									<td>Static WH:</td>
									<td>{{wsys.static_details}}</td>
								</tr>
								{% endif %}
							</table>
						</div>
					</td>
					<td valign="top">
						<div id="links">
							<h3>External links</h3>
							<div><a target='_blank' href='http://evemaps.dotlan.net/system/{{sysname}}'>EveMaps system info</a></div>
							{% if not wsys %}
								<div><a target='_blank' href='http://evemaps.dotlan.net/route/{{sysname}}:Jita'>Route to Jita</a></div>
								<div><a target='_blank' href='http://evemaps.dotlan.net/route/{{sysname}}:Rens'>Route to Rens</a></div>
								<div><a target='_blank' href='http://evemaps.dotlan.net/route/{{sysname}}:Amarr'>Route to Amarr</a></div>
							{% endif %}
						</div>
					</td>
				</tr>
			</table>
		</div>
		<div id="main1">
		<table>
			{% if notes %}
			<tr>
				<td valign="top">
					<div id="notes">
						<h3>Notes</h3>
						<table><tr class="standard">
							<td>{{notes}}</td>
						</tr></table>
					</div>
				</td>
			</tr>
			{% endif %}
			<tr>
				<td valign="top">
					<div id="sigs">
						<h3>Signatures</h3>
						<table>
							<tr class="standard">
								<th>Sig</th>
								<th>Type</th>
								<th>Destination</th>
								<th>Found by</th>
							</tr>
							{% for sig in sigs %}
								<tr class="standard">
									<td>{{sig.code}}</td>
									<td>{{sig.sigtype}}</td>
									<td>
										{% if sig.destination %}
											<a href="/viewsystem2?name={{sig.destination}}">{{sig.destination}}</a>
										{% endif %}
										&nbsp;
									</td>
									<td>{{sig.entered_by}}</td>
								</tr>
							{% endfor %}
						</table>
					</div>
				</td>
			</tr>
		</table>
		</div>
{% endblock %}
